package hy;

import hy.dao.UserDao;
import hy.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MyCtrl {
    @Autowired
    UserDao dao;
    
    @RequestMapping("/users")
    public List<User> get(){
        return dao.selectUser();


    }
}